/**
 * @author:linjiye
 * @date: 2024/01/13
 * @desc: 自定义钩子：异步清除所有本地化数据
 **/
import AsyncStorage from "@react-native-async-storage/async-storage";

const useClearStorage = async () => {
    try {
        await AsyncStorage.clear();
        // console.log('所有数据已清空');
    } catch (e) {
        console.error('清空时出错:', e);
    }
};

export default useClearStorage